package com.jingdianjichi.subject.common.enums;

import lombok.Getter;

/**
 * 删除状态枚举
 */
@Getter
public enum ISDeletedFlagEnum{

    DELETED(1,"已删除"),

   UN_DELETE(0,"未删除");

    public int code;

    public String desc;

    ISDeletedFlagEnum(int code,String desc){
        this.code=code;
        this.desc=desc;
    }

    public static ISDeletedFlagEnum getByCode(int codeVal){
        for (ISDeletedFlagEnum resultCodeEnum:ISDeletedFlagEnum.values()){
            if (resultCodeEnum.code==codeVal){
                return resultCodeEnum;
            }
        }
        return null;
    }

}
